<?php
/**
 * File : Translation.php
 * Created by Ludovic Reenaers
 * Created on  4 nov. 2010
 * lreenaers@hotmail.com
 */
class Translation{
	private $id;
	private $name;
	private $label;
	function __construct($id) {

		if (is_int($id)){
			if($id >= 0){
				$this->id=$id;
			}else{
				throw new FieldFormatException($_SESSION['translator']->idVal);
			}
		}else{
			throw new FieldFormatException($_SESSION['translator']->idInt);
		}
	}
	public function getId(){
		return $this->id;
	}
	public function getName(){
		return $this->name;
	}
	public function getLabel(){
		return $this->label;
	}
	public function setName($namestr){
		$this->name = $namestr;
	}
	public function setLabel($labelstr){
		$this->label = $labelstr;
	}
	
}
?>